package com.xuwenjin.basic_juc;


//总结,实现同一个接口,代理对象包含被代理的引用

public class TestStaticProxy implements marry{
    public static void main(String[] args) {

    }

    @Override
    public void happyMarry() {
        System.out.println("happymarry");
    }
}

interface marry{
    void happyMarry();
}

class company implements marry{

    private marry ma;

    @Override
    public void happyMarry() {
    before();
    ma.happyMarry();
    after();
    }

     void before(){

     }
     void after(){

     }
}
